home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / The World of Computer Software.iso / vdtj122b.zip / DEMO11.VDM < prev    next >
Text File  |  1992-11-30  |  5KB  |  161 lines

  1. RI(9)\VEDIT and VEDIT PLUS - Data/Binary File Editing\
  2. M(H)
  3.  
  4. YT\
  5. VEDIT's new, most unique, and for some people, most important feature is its
  6. ability to edit not only text files but also data (binary) files.  This means 
  7. that VEDIT can edit ANY file you will ever encounter.  And it can edit multi-
  8. megabyte files (up to 2 Gigabytes) much faster than any other program you
  9. have ever used.
  10.  
  11. The different "display modes" used for editing data files are also useful when
  12. editing text files that have embedded control and graphics characters.
  13.  
  14. Since we can't fit a multi-megabyte data file onto this demo disk, we will
  15. demonstrate data file editing using the VDEMO.EXE file.  It will be opened
  16. in "Browse mode" so that it is not accidentally altered.
  17.  
  18. Note:    If you attempt to alter VDEMO.EXE you will get an error message, and
  19.     the next time you press <ESC>, you will be returned to the main menu.
  20.  
  21. \
  22.  
  23. M(K)
  24. 8XS(100)
  25. M(W)
  26. EZY
  27. :EB vdemo.exe
  28.  
  29. EE(1)
  30. B#K
  31. I\The VDEMO.EXE file has been loaded and is display above. (Like many data
  32. files, it looks like gibberish.)  Since a typical ".EXE" file has what appears
  33. to VEDIT to be "Line-Feed" characters, VDEMO.EXE has been opened as a text
  34. file.  Some "lines" are short; others are quite long.  VEDIT considers each
  35. line to be a "variable length record".
  36.  
  37. Select {CONFIG, File Handling, File type} and enter a new value of "64".  Then
  38. press <Ctrl-C>.        --- Press <Esc> to continue ---\
  39.  
  40. B -V
  41. EE(@)
  42. V
  43.  
  44. EE(1)
  45. B#K
  46. I\The file is now displayed with 64 characters per screen line.  The right
  47. edge is ragged because some characters, such as Line-Feed, are displayed
  48. as the four characters "<LF>".  The blank space is due to the many "nulls" in
  49. the begining of the file.  VEDIT's "display modes" let you display the file in
  50. other, perhaps more useful ways.
  51.  
  52. VEDIT now considers each line to be a "fixed length record" of 64 bytes.
  53.         --- Press <Esc> to continue ---\
  54.  
  55. B -V
  56. EE(@)
  57. -EP 13 64    R* Force file type = 64
  58. V
  59.  
  60. EE(1)
  61. B#K
  62. I\<Alt-D>, the hot-key for {WINDOW, Toggle display mode} lets you toggle
  63. between five ASCII modes for displaying control and graphics characters,
  64. plus Hexadecimal and EBCDIC modes.  Each window can be in a different mode!
  65.  
  66. Press <Alt-D> repeatedly to toggle through the seven modes.  The mode
  67. immediately after Hexadecimal is "EBCDIC".  This is primarily useful for
  68. editing files downloaded from an IBM mainframe.
  69.         --- Press <Esc> to continue ---\
  70.  
  71. B -V
  72. EE(@)
  73. V
  74.  
  75. EZY
  76. -EP 13 0    R* Reset file type
  77. YWS(@) 0YED    R* Reset display mode
  78. I/
  79. ┌───────┐
  80. │       │
  81. ├───────┤
  82. │       │
  83. └───────┘
  84.  
  85. Control characters can be displayed in different ways: 
  86. /
  87. B
  88. EE(1)
  89. B#K
  90.  
  91. I\Since it is easier to understand the "display modes" by viewing some text
  92. containing graphics and control characters, we have created an example
  93. containing both above.
  94.  
  95. Press <Alt-D> repeatedly to toggle through the display modes again.  Notice
  96. how the graphics and control characters are displayed in different ways.
  97. (You can edit the text above to experiment.)
  98.         --- Press <Esc> to continue ---\
  99.  
  100. B -V
  101. EE(@)
  102. V
  103.  
  104. EZY
  105. :EB vdemo.exe
  106. -EP 13 16    R* Set file type = 16
  107. YWS(@) 4YED    R* Set display mode = 4
  108. 35L        R* Skip initial "nulls"
  109.  
  110. EE(1)
  111. B#K
  112. I\VDEMO.EXE has been loaded again.  The file type has been set to "16".  You can
  113. also view/edit in both Hexadecimal and ASCII at the same time.
  114.  
  115. Select {WINDOW, Hex-mode split}.  The left window now displays in Hexadecimal
  116. and the right window in ASCII.  Notice that the ASCII window displays all
  117. characters literally, including Tab, Carriage-Return and Line-Feed.  You can
  118. edit in either window.  Use <Ctrl-T> to toggle between the windows.
  119.         --- Press <Esc> to continue ---\
  120.  
  121. B -V
  122. EE(@)
  123. V
  124.  
  125. EE(1)
  126. B#K
  127. I\When you are in the hexadecimal window, the status line displays the cursor's
  128. relative file position in hexadecimal.  New bytes must be entered in hex.
  129. (However, you are currently in browse mode!)  You can search for hex values
  130. using the "|Hhh" pattern matching code.  For example, the search string
  131. "|H45|H6E" will search for the byte sequence "45 6E".
  132.  
  133. If desired, you can press <Alt-D> to toggle the display mode of the current
  134. window.        --- Press <Esc> to continue ---\
  135.  
  136. B -V
  137. EE(@)
  138. V
  139.  
  140. EZY
  141. RI(9)\VEDIT and VEDIT PLUS - Data/binary File Editing\
  142. M(H)            !Display header
  143.  
  144. YT\
  145. VEDIT has other data/binary file editing capabilities that are outside the
  146. scope of this demo.  A simple VEDIT PLUS macro can convert a "fixed length
  147. record" file (without Line-Feed characters) downloaded from a mainframe into
  148. a normal DOS text file.
  149.  
  150. The "File type" can be set to any record size, even a record size of "2048".
  151. Horizontal scrolling can be used to edit these these long records.
  152. Alternatively, the "Horizontal scroll margin" can be set to wrap long records
  153. (lines) onto multiple screen lines.
  154.  
  155. If you have a CD-ROM attached to your computer, you might enjoy using VDEMO
  156. to browse some of the huge data files found on CD-ROMs.
  157.  
  158.         --- Press any key to return to the Main Menu ---\
  159.  
  160. XK(0)""
  161.